home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / disk / wssi531a.zip / STARTWSS.BAT < prev    next >
DOS Batch File  |  1994-03-19  |  2KB  |  53 lines

  1. @echo off
  2. rem Sample batch file for starting Wssindex.  Arguments are configuration
  3. rem and database file names.  Edit as necessary for your configuration.
  4. rem Lines beginning with 'rem' are comments.  Removing them will slightly
  5. rem decrease execution time.
  6.  
  7. rem Delete this block of lines after inserting the appropriate paths.
  8.    echo You must edit startwss.bat to insert paths appropriate for your setup.
  9.    goto Done
  10.  
  11. rem This batch file assumes that you have sufficient environment space.
  12. rem If not, you may end up with a strange prompt.
  13.  
  14. rem The next 2 lines are only for Wssindex/Extended.  Wssindex/Extended is
  15. rem unable to change the prompt in a DOS shell, so the 2 SETs save the old
  16. rem prompt and then redefine the prompt.
  17.  
  18.    set oldprompt=%PROMPT%
  19.    set prompt=Type 'EXIT' to return to Wssindex$_%PROMPT%
  20.  
  21. rem These two SETs define default configuration and database file names.
  22. rem Change as necessary for your disk directory structure.  You can delete
  23. rem these entirely if explicit paths are included in the invocation of
  24. rem Wssindex below.
  25.  
  26.    set wssicnf=c:\wssindex\wssindex.cnf
  27.    set wssidir=c:\wssindex\wssindex.dir
  28.  
  29. rem These SETs define the swap disk for Wssindex/286 and Wssindex/386
  30. rem if they were not previously defined.
  31.    if "%TEMP%" == "" set temp=c:\temp
  32.    if "%GO32TMP%" == "" set go32tmp=c:\temp
  33.  
  34. rem The following command starts Wssindex.  The configuration and database
  35. rem files names are arguments to this batch file.  If you don't enter any
  36. rem arguments, they default to wssindex.cnf and wssindex.dir
  37.  
  38. rem Pick one of these, delete the other three
  39.    c:\wssindex\wssi531d c:\wssindex\%1 c:\wssindex\%2
  40.    c:\wssindex\wssi531 c:\wssindex\%1 c:\wssindex\%2
  41.    c:\wssindex\wsbli531 c:\wssindex\%1 c:\wssindex\%2
  42.    c:\wssindex\wsgcc531 c:\wssindex\%1 c:\wssindex\%2
  43.  
  44. rem Restore the original prompt and clean up the environment variables used.
  45. rem Variables temp and go32tmp are not cleared because they might be used
  46. rem by other programs.
  47.    set wssicnf=
  48.    set wssidir=
  49.    set prompt=%OLDPROMPT%
  50.    set oldprompt=
  51.  
  52. :Done
  53.